TARGET = TaskScheduler
SOURCES = base_task_scheduler.cpp base_task_format.cpp
OBJECTS = $(SOURCES:.cpp=.o)
LIBRARIES = lib$(TARGET:=.a)

all : $(OBJECTS)
	@$(AR) rc $(BINARYDIR)/$(LIBRARIES) $(OBJECTDIR)/base_task_scheduler.o $(OBJECTDIR)/base_task_format.o
	 
base_task_scheduler.o : $(PROJECTDIR)/$(TARGET)/sources/base_task_scheduler.cpp
	$(CXX) -o $(OBJECTDIR)/$@ \
	-I $(PROJECTDIR)/$(TARGET)/includes \
	-c $<

base_task_format.o : $(PROJECTDIR)/$(TARGET)/sources/base_task_format.cpp
	$(CXX) -o $(OBJECTDIR)/$@ \
	-I $(PROJECTDIR)/$(TARGET)/includes \
	-c $< 